<h2>公告 &gt; 列表</h2>

<table class="list" cellpadding="0" cellspacing="0">
	<thead align="center">
		<td nowrap>id</td>
		<td nowrap>标题</td>
		<td nowrap>内容</td>
		<td nowrap>动作</td>
		<td nowrap>创建时间</td>
	</thead>
	<? foreach($this->ret['data']['ROWS'] as $row):?>
	<tr>
		<td>
			<?= $row['id'] ?>
		</td>
		<td nowrap>
			<a href='<?= AdminController::_makeURL('sms', 'announcement', 'edit_form', array('id'=>$row['id']))?>'><?= $row['title']?></a>
		</td>
		<td>
			<?= $row['content']?>
		</td>
		<td nowrap>
			<a href='<?= AdminController::_makeURL('sms', 'announcement', 'edit_form', array('id'=>$row['id']))?>'>修改</a>
			 | 
			<a href='###' aid="<?= $row['id']?>" class="delete-link">删除</a>
		</td>
		<td nowrap>
			<?= date('Y-m-d H:i:s', $row['create_time']) ?>
		</td>
	</tr>
	<? endforeach;?>
</table>

<script>
hookDeleteConfirm.hook = function(src){ return $H({_app: 'sms', _controller: 'announcement', _action: 'delete', id: src.getAttribute('aid')}).toQueryString();};
</script>